/*
 * An XML document type.
 * Localname: BufferedMessageResponse
 * Namespace: http://www.hpsearch.org/schemas/2006/05/BSA
 * Java type: cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument
 *
 * Automatically generated - do not modify.
 */
package cgl.narada.mgmt.schemas.bsa.impl;
/**
 * A document containing one BufferedMessageResponse(@http://www.hpsearch.org/schemas/2006/05/BSA) element.
 *
 * This is a complex type.
 */
public class BufferedMessageResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument
{
    
    public BufferedMessageResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BUFFEREDMESSAGERESPONSE$0 = 
        new javax.xml.namespace.QName("http://www.hpsearch.org/schemas/2006/05/BSA", "BufferedMessageResponse");
    
    
    /**
     * Gets the "BufferedMessageResponse" element
     */
    public cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument.BufferedMessageResponse getBufferedMessageResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument.BufferedMessageResponse target = null;
            target = (cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument.BufferedMessageResponse)get_store().find_element_user(BUFFEREDMESSAGERESPONSE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "BufferedMessageResponse" element
     */
    public void setBufferedMessageResponse(cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument.BufferedMessageResponse bufferedMessageResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument.BufferedMessageResponse target = null;
            target = (cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument.BufferedMessageResponse)get_store().find_element_user(BUFFEREDMESSAGERESPONSE$0, 0);
            if (target == null)
            {
                target = (cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument.BufferedMessageResponse)get_store().add_element_user(BUFFEREDMESSAGERESPONSE$0);
            }
            target.set(bufferedMessageResponse);
        }
    }
    
    /**
     * Appends and returns a new empty "BufferedMessageResponse" element
     */
    public cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument.BufferedMessageResponse addNewBufferedMessageResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument.BufferedMessageResponse target = null;
            target = (cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument.BufferedMessageResponse)get_store().add_element_user(BUFFEREDMESSAGERESPONSE$0);
            return target;
        }
    }
    /**
     * An XML BufferedMessageResponse(@http://www.hpsearch.org/schemas/2006/05/BSA).
     *
     * This is a complex type.
     */
    public static class BufferedMessageResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.BufferedMessageResponseDocument.BufferedMessageResponse
    {
        
        public BufferedMessageResponseImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName FOUND$0 = 
            new javax.xml.namespace.QName("", "found");
        private static final javax.xml.namespace.QName MESSAGE$2 = 
            new javax.xml.namespace.QName("", "message");
        
        
        /**
         * Gets the "found" element
         */
        public boolean getFound()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FOUND$0, 0);
                if (target == null)
                {
                    return false;
                }
                return target.getBooleanValue();
            }
        }
        
        /**
         * Gets (as xml) the "found" element
         */
        public org.apache.xmlbeans.XmlBoolean xgetFound()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(FOUND$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "found" element
         */
        public void setFound(boolean found)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FOUND$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FOUND$0);
                }
                target.setBooleanValue(found);
            }
        }
        
        /**
         * Sets (as xml) the "found" element
         */
        public void xsetFound(org.apache.xmlbeans.XmlBoolean found)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(FOUND$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(FOUND$0);
                }
                target.set(found);
            }
        }
        
        /**
         * Gets the "message" element
         */
        public java.lang.String getMessage()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MESSAGE$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "message" element
         */
        public org.apache.xmlbeans.XmlString xgetMessage()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MESSAGE$2, 0);
                return target;
            }
        }
        
        /**
         * Sets the "message" element
         */
        public void setMessage(java.lang.String message)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MESSAGE$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MESSAGE$2);
                }
                target.setStringValue(message);
            }
        }
        
        /**
         * Sets (as xml) the "message" element
         */
        public void xsetMessage(org.apache.xmlbeans.XmlString message)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MESSAGE$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MESSAGE$2);
                }
                target.set(message);
            }
        }
    }
}
